import { Translations } from '../context';

const en: Translations = {
  header: {
    title: 'Database Management Console',
    subtitle: 'Manage your database instances, monitor performance, and analyze slow queries'
  },

  navigation: {
    instances: 'Instances',
    performance: 'Performance',
    slowQueries: 'Slow Queries',
    storage: 'Storage'
  },

  stats: {
    runningInstances: 'Running Instances',
    totalConnections: 'Total Connections',
    avgCpuUsage: 'Avg CPU Usage',
    totalStorage: 'Total Storage'
  },

  instances: {
    title: 'Database Instances',
    createNew: 'Create New Instance',
    noInstances: 'No database instances',
    getStarted: 'Get started by creating your first database instance',
    status: {
      running: 'Running',
      stopped: 'Stopped',
      pending: 'Pending',
      maintenance: 'Maintenance'
    },
    actions: {
      start: 'Start',
      stop: 'Stop',
      delete: 'Delete',
      viewDetails: 'View Details'
    },
    details: {
      engine: 'Engine',
      version: 'Version',
      region: 'Region',
      instanceType: 'Instance Type',
      storage: 'Storage',
      connections: 'Connections',
      cpu: 'CPU',
      memory: 'Memory',
      createdAt: 'Created'
    }
  },

  createDatabase: {
    title: 'Create Database Instance',
    description: 'Configure your new database instance',
    form: {
      name: 'Instance Name',
      namePlaceholder: 'Enter instance name',
      engine: 'Database Engine',
      enginePlaceholder: 'Select engine',
      version: 'Version',
      versionPlaceholder: 'Select version',
      instanceType: 'Instance Type',
      instanceTypePlaceholder: 'Select instance type',
      region: 'Region',
      regionPlaceholder: 'Select region',
      storage: 'Storage (GB)'
    },
    buttons: {
      cancel: 'Cancel',
      create: 'Create Instance'
    }
  },

  performance: {
    title: 'Performance Monitor',
    selectDatabase: 'Select Database:',
    chooseDatabase: 'Choose a database instance',
    selectInstance: 'Select a Database Instance',
    selectInstanceDescription: 'Choose a running database instance from the dropdown above to view its performance metrics',
    noRunningInstances: 'No Running Database Instances',
    noRunningDescription: 'Start a database instance to view performance metrics',
    metrics: {
      cpuUsage: 'CPU Usage',
      memoryUsage: 'Memory Usage',
      activeConnections: 'Active Connections',
      storageUsed: 'Storage Used',
      status: {
        good: 'Good',
        warning: 'Warning',
        critical: 'Critical'
      },
      charts: {
        cpu24h: 'CPU Usage (24h)',
        memory24h: 'Memory Usage (24h)',
        connections24h: 'Active Connections (24h)',
        iops24h: 'IOPS (24h)'
      }
    },
    queryPerformance: {
      title: 'Query Performance (Last Hour)',
      queryCount: 'queries',
      avgResponse: 'avg response',
      avgQueryTime: 'Avg Query Time',
      networkIO: 'Network I/O',
      activeAlerts: 'Active Alerts'
    }
  },

  slowQueries: {
    title: 'Slow Query Monitor',
    selectDatabase: 'Select Database:',
    chooseDatabase: 'Choose a database instance',
    table: {
      query: 'Query',
      duration: 'Duration',
      database: 'Database',
      timestamp: 'Timestamp',
      impact: 'Impact',
      actions: 'Actions'
    },
    actions: {
      optimize: 'Optimize',
      explain: 'Explain',
      kill: 'Kill'
    },
    impact: {
      high: 'High',
      medium: 'Medium',
      low: 'Low'
    }
  },

  storage: {
    title: 'Database Space Monitor',
    totalStorage: 'Total Storage',
    usedStorage: 'Used Storage',
    available: 'Available',
    usagePercent: 'Usage %',
    high: 'High',
    normal: 'Normal',
    usageOverview: 'Storage Usage Overview',
    currentUsage: 'Current Usage',
    criticallyHigh: 'Storage usage is critically high. Consider scaling up or archiving old data.',
    significantlyHigh: 'Storage usage is significantly high. Consider scaling up or archiving old data.',
    growthTrend: 'Storage Growth Trend',
    sizeDistribution: 'Database Size Distribution',
    largestTables: 'Largest Tables',
    totalCapacity: 'Total Capacity',
    size: 'Size',
    overview: {
      title: 'Storage Overview',
      totalAllocated: 'Total Allocated',
      totalUsed: 'Total Used',
      freeSpace: 'Free Space',
      utilizationRate: 'Utilization Rate'
    },
    byDatabase: {
      title: 'Storage by Database',
      database: 'Database',
      allocated: 'Allocated',
      used: 'Used',
      free: 'Free',
      utilization: 'Utilization'
    },
    growth: {
      title: 'Storage Growth Trend',
      projection: '30-day projection'
    }
  },

  common: {
    loading: 'Loading...',
    error: 'Error',
    success: 'Success',
    warning: 'Warning',
    info: 'Info',
    cancel: 'Cancel',
    save: 'Save',
    delete: 'Delete',
    confirm: 'Confirm',
    close: 'Close',
    refresh: 'Refresh',
    language: 'Language'
  },

  messages: {
    databaseCreated: 'created successfully!',
    databaseStarted: 'Database instance started successfully!',
    databaseStopped: 'Database instance stopped successfully!',
    databaseDeleted: 'deleted successfully!',
    viewingDetails: 'Viewing details for',
    databaseRunning: 'is now running!'
  },

  auth: {
    login: {
      title: 'Database Console Login',
      description: 'Sign in to access the database management console',
      signIn: 'Sign In',
      loggingIn: 'Signing In...',
      demoCredentials: 'Demo Credentials:',
      demoUsername: 'Username',
      demoPassword: 'Password'
    },
    form: {
      username: 'Username',
      usernamePlaceholder: 'Enter your username',
      password: 'Password',
      passwordPlaceholder: 'Enter your password'
    },
    menu: {
      profile: 'Profile',
      settings: 'Settings',
      logout: 'Log out'
    },
    validation: {
      required: 'Username and password are required'
    },
    errors: {
      invalidCredentials: 'Invalid username or password',
      networkError: 'Network error. Please try again.',
      serverError: 'Server error. Please try again later.'
    }
  }
};

export default en;